package com.recruit.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.recruit.common.model.FavorDO;
import com.recruit.common.model.PositionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Eval
 * @since 2022-04-02
 */
@Mapper
public interface FavorMapper extends BaseMapper<FavorDO> {
    List<PositionDO> getByUserId(Integer userId);

    FavorDO getByUserIdAndFavorId(@Param("userId") Integer userId, @Param("positionId") Integer positionId);
}
